
A = round(10*rand(10,5)) ;
B = round(10*rand(10,7)) ;

% etherogeneous distances

figure(1) ; clf ;
subplot(3,3,1) ; imagesc(alldist2(A,B)) ;
subplot(3,3,1) ; imagesc(alldist2(single(A),  single(B))) ;
subplot(3,3,2) ; imagesc(alldist2( int8(A),     int8(B))) ;
subplot(3,3,3) ; imagesc(alldist2(uint8(A),    uint8(B))) ;
subplot(3,3,4) ; imagesc(alldist2( int16(A),   int16(B))) ;
subplot(3,3,5) ; imagesc(alldist2(uint16(A),  uint16(B))) ;
subplot(3,3,6) ; imagesc(alldist2( int32(A),   int32(B))) ;
subplot(3,3,7) ; imagesc(alldist2(uint32(A),  uint32(B))) ;


% auto distances

figure(2) ; clf ;
subplot(3,3,1) ; imagesc(alldist2(A)) ;
subplot(3,3,1) ; imagesc(alldist2(single(A))) ;
subplot(3,3,2) ; imagesc(alldist2(  int8(A))) ;
subplot(3,3,3) ; imagesc(alldist2( uint8(A))) ;
subplot(3,3,4) ; imagesc(alldist2( int16(A))) ;
subplot(3,3,5) ; imagesc(alldist2(uint16(A))) ;
subplot(3,3,6) ; imagesc(alldist2( int32(A))) ;
subplot(3,3,7) ; imagesc(alldist2(uint32(A))) ;
subplot(3,3,9) ; imagesc(alldist2(A,A)) ;


